package com.zxy.controller.v1;

import com.zxy.service.v1.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Description: TODO
 * @Author: zhuxianyu
 * @Date: 2021/12/17 21:23
 * @Version: 1.0
 */
@Controller
@RequestMapping("/v1")
public class UserController {
    @Autowired
    UserService userService;

    @RequestMapping("/httpRequest")
    @ResponseBody
    public String httpRequest() {
        userService.httpRequest("ok", 300);
        return "httpRequest";
    }
}
